package cc.wfu.trigger.api;

import cc.common.types.entity.ShopCartEntity;
import cc.wfu.types.model.Response;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;
import java.io.IOException;
import java.util.List;

/**
 * @Author: jia-qiang ljq1024.cc
 * @desc: sale 接口
 * @Date: 2024-06-07-15:57
 */
public interface SaleApi {

    /** 用户下单 */
    Response<String> createParOrder(String token, ShopCartEntity shopCartEntity);


    /** 蓝兔支付成功回调 */
    void ltzyPayNotify(String code, String timestamp, String mch_id,
                              String order_no, String out_trade_no, String pay_no,
                              String total_fee, String sign, String pay_channel,
                              String trade_type, String success_time, String attach, String openid,
                              HttpServletRequest request, HttpServletResponse response) throws IOException;


    void productActivityArmory(@RequestBody List<Long> skus);
}
